<template>
  <div class="music-library">
    <h2>热门音乐推荐</h2>
    <el-row :gutter="20">
      <el-col v-for="i in 8" :key="i" :span="6">
        <el-card class="music-card" shadow="hover">
          <img class="cover" src="https://picsum.photos/200/150" />
          <div class="music-info">
            <h3>歌曲标题 {{ i }}</h3>
            <p>艺术家 {{ i }}</p>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<style scoped>
.music-card {
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.music-card:hover {
  transform: translateY(-5px);
}

.cover {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.music-info {
  padding: 10px;
  text-align: center;
}
</style>
<script lang="ts" setup></script>
